package com.foreknow.elmboot.service.impl;


import com.foreknow.elmboot.mapper.CartMapper;
import com.foreknow.elmboot.po.Cart;
import com.foreknow.elmboot.service.CartService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class CartServiceImpl implements CartService {
    @Autowired
    private CartMapper cartMapper;
    @Override
    public List<Cart> listCartService(Cart cart) {
        return cartMapper.listCartDao(cart);
    }

    @Override
    public int saveCartService(Cart cart) {
        return cartMapper.saveCartDao(cart);
    }

    @Override
    public int updateCartService(Cart cart) {
        return cartMapper.updateCartDao(cart);
    }

    @Override
    public int removeCartService(Cart cart) {
        return cartMapper.removeCartDao(cart);
    }
}
